
// ChildView.h : interface of the CChildView class
//


#pragma once

#include "AnimationThread.h"
#include "Graphic.h"

const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;

// CChildView window

class CChildView : public CWnd, public AnimationThread
{
// Construction
public:
	CChildView();

// Attributes
public:
	PGRAPHIC m_pGraphic;

// Operations
public:
	virtual void UpdateGame();
	virtual void RenderGame();
	virtual void PaintScreen();

	volatile bool m_bGameOver;
	volatile bool m_bIsPaused;

	void Pause();
	void Resume();


// Overrides
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// Implementation
public:
	virtual ~CChildView();

	// Generated message map functions
protected:
	afx_msg void OnPaint();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
};

